package dk.eclipse.android.helpers;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;

public class ApplicationHelper {

	public static PackageInfo getPackageInfo(Context context) {
		PackageManager manager = context.getPackageManager();
		PackageInfo info = null;
		
		try {
			info = manager.getPackageInfo(context.getPackageName(),
					0);
		} catch (NameNotFoundException e) {
		}

		return info;
	}
}
